<template>
	<view class="content">
		<view class="cells">
			<view class="cell" 
			v-for="(item,index) in list" 
			:key="index">
				<view class="list">
					<view class="name">{{item.name}}</view>
					<view class="text">
						<view class="title">{{item.title}}</view>
						<view class="txt">意见 {{item.txt}}</view>
					</view>
					<view class="right">
						<view class="btn">审批</view>
						<view 
						class="btn" 
						:class="item.status==0?'pass':'no-pass'">
						{{item.status==0?'通过':'驳回'}}
						</view>
					</view>
				</view>
				<view v-if="item.status==0" class="time">审核时间：{{item.time}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[{
					name: '丹',
					title: '新经销商引入通过',
					txt: '丹丹',
					status: 0,
					time: '08-20 15:30',
				},{
					name: '丹',
					title: '新经销商引入不通过',
					txt: '丹丹',
					status: 1,
					time: '08-20 15:30',
				}]
			};
		}
	}
</script>

<style scoped lang="scss">
	.content{
		.cells{
			margin-top: 25rpx;
			.cell{
				padding: 25rpx;
				box-sizing: border-box;
				margin-bottom: 25rpx;
				background: #FFFFFF;
				display: flex;
				flex-flow: column;
				.list{
					display: flex;
					flex-flow: nowrap;
					justify-content: flex-start;
					.name{
						background: #D9E9DD;
						width: 90rpx;
						height: 90rpx;
						border-radius: 50%;
						font-size: 38rpx;
						font-weight: bold;
						color: #FFF;
						margin-right: 30rpx;
						text-align: center;
						line-height: 90rpx;
					}
					.text{
						display: flex;
						flex-flow: column;
						height: 90rpx;
						justify-content: space-around;
						.title{
							color: #333333;
							font-size: 28rpx;
						}
						.txt{
							color: #999999;
							font-size: 26rpx;
						}
					}
					.right{
						display: flex;
						flex-flow: nowrap;
						justify-content: flex-start;
						margin-left: auto;
						.btn{
							font-size: 26rpx;
							color: #999999;
							padding-left: 15rpx;
						}
						.pass{
							color: #2BAD4C;
						}
						.no-pass{
							color: red;
						}
					}
				}
				.time{
					font-size: 26rpx;
					color: #999999;
					padding-top: 15rpx;
				}
			}
		}
	}
</style>
